layui.use(['element','table','layer'],function () {
    var layer = layui.layer,
        $ = layui.$,
        table = layui.table;

    table.render({
        elem:'#logTable',
        url:'selectLog',
        page:true,
        toolbar:true,
        cellMinWidth:200,
        height:'full-180',
        limit: 5,//默认进去每页显示5条
        limits: [5, 10, 15, 20],//自己设置下拉列表5, 10, 15, 20,行
        cols:[
            // [ //表头
            //     {fixed:'left',field: 'logId', title: 'Id',align:'center',width:50},
            //     {field: 'logType', title: '类型',align:'center',sort:true},
            //     {field: 'logMove', title: '执行方法',align:'center'},
            //     {field: 'logState', title: '状态',align:'center'},
            //     {field: 'userName', title: '用户名',align:'center'},
            //     {field: 'logDate', title: '执行时间',align:'center'},
            // ]
            [
                {fixed:'left',field: 'logId', title: 'Id',align:'center',width:50},
                {field: 'logByTime', title: '访问时间',align:'center',sort:true},
                {field: 'logByUser', title: '用户',align:'center'},
                {field: 'logByUrl', title: '访问URL',align:'center'},
                {field: 'logByRunName', title: '执行方法',align:'center'},
                {fixed:'right',field: 'logByRunTime', title: '执行时间',align:'center'},
                {field: 'logByClass', title: '访问方法路径',align:'center',hide:true}
            ]
        ]
    })
});